home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / nfs / amd / amd-5.2 / config / os-xinu43.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-23  |  2.6 KB  |  97 lines

  1. /* $Id: os-xinu43.h,v 5.2 90/06/23 22:21:01 jsp Rel $ */
  2.  
  3. /*
  4.  * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter)
  5.  * Should work on both Vax and HP ...
  6.  *
  7.  * Copyright (c) 1989 Jan-Simon Pendry
  8.  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  9.  * Copyright (c) 1989 The Regents of the University of California.
  10.  * All rights reserved.
  11.  *
  12.  * This code is derived from software contributed to Berkeley by
  13.  * Jan-Simon Pendry at Imperial College, London.
  14.  *
  15.  * Redistribution and use in source and binary forms are permitted provided
  16.  * that: (1) source distributions retain this entire copyright notice and
  17.  * comment, and (2) distributions including binaries display the following
  18.  * acknowledgement:  ``This product includes software developed by the
  19.  * University of California, Berkeley and its contributors'' in the
  20.  * documentation or other materials provided with the distribution and in
  21.  * all advertising materials mentioning features or use of this software.
  22.  * Neither the name of the University nor the names of its contributors may
  23.  * be used to endorse or promote products derived from this software without
  24.  * specific prior written permission.
  25.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  26.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  27.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  28.  *
  29.  *    %W% (Berkeley) %G%
  30.  */
  31.  
  32. /*
  33.  * Does the compiler grok void *
  34.  */
  35. #define    VOIDP
  36.  
  37. /*
  38.  * Which version of the Sun RPC library we are using
  39.  * This is the implementation release number, not
  40.  * the protocol revision number.
  41.  */
  42. #define    RPC_4
  43.  
  44. /*
  45.  * mt Xinu have a compatibility problem
  46.  * with getreq vs. getreqset.  On SunOS
  47.  * getreqset takes a pointer to an fd_set,
  48.  * whereas on MORE/bsd, getreq takes a
  49.  * fd_set directly (cf. an integer on SunOS).
  50.  */
  51. #define    svc_getreqset(p)    svc_getreq(*p)
  52.  
  53. /*
  54.  * Which version of the NFS interface are we using.
  55.  * This is the implementation release number, not
  56.  * the protocol revision number.
  57.  */
  58. #define    NFS_4
  59.  
  60. /*
  61.  * Name of filesystem types
  62.  */
  63. #define    MOUNT_TYPE_NFS    "nfs"
  64. #define    MOUNT_TYPE_UFS    "ufs"
  65. #undef MTAB_TYPE_UFS
  66. #define    MTAB_TYPE_UFS    "ufs"
  67.  
  68. /*
  69.  * Byte ordering
  70.  */
  71. #ifndef BYTE_ORDER
  72. #include <machine/endian.h>
  73. #endif /* BYTE_ORDER */
  74.  
  75. #undef ARCH_ENDIAN
  76. #if BYTE_ORDER == LITTLE_ENDIAN
  77. #define ARCH_ENDIAN "little"
  78. #else
  79. #if BYTE_ORDER == BIG_ENDIAN
  80. #define ARCH_ENDIAN "big"
  81. #else
  82. XXX - Probably no hope of running Amd on this machine!
  83. #endif /* BIG */
  84. #endif /* LITTLE */
  85.  
  86. /*
  87.  * Type of a file handle
  88.  */
  89. #undef NFS_FH_TYPE
  90. #define NFS_FH_TYPE     caddr_t
  91.  
  92. /*
  93.  * Type of filesystem type
  94.  */
  95. #undef MTYPE_TYPE
  96. #define    MTYPE_TYPE    char *
  97.